package com.kuang.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kuang.entity.Student;
import com.kuang.service.StudentService;
import com.kuang.mapper.StudentMapper;
import com.kuang.vo.DataVO;
import com.kuang.vo.StudentVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author Augenestern
* @description 针对表【student(学生表)】的数据库操作Service实现
* @createDate 2024-03-26 12:04:43
*/
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student>
    implements StudentService{


    @Autowired
    private StudentMapper studentMapper;

    @Override
    public DataVO<StudentVO> findData() {

        DataVO<StudentVO> dataVO = new DataVO<>();
        dataVO.setCode(0);
        dataVO.setMsg("");
        dataVO.setCount(studentMapper.selectCount(null));




        return dataVO;
    }
}




